Verify Card Security Codes

Command:

This command verifies the 5-digit, 4-digit and 3-digit Card Security Code.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message Header

m A

(Subsequently returned to the Host unchanged).

Command Code

2 A

Value RY

Mode

1 N

Value 4

Flag

1 N

A flag to indicate special processing options; value 0.

*CSCK

32H or 1A+32H

The *CSCK encrypted under LMK 14-15 variant 4.

Account number

19 N

The full account number, left-justified and zero-filled if less than 19 digits.

Expiration date

4 N

The expiration date in YYMM format.

5-digit CSC

5 N

5-digit  Card Security code.  If not present value FFFFF

4-digit CSC

4 N

4-digit  Card Security code.  If not present value FFFF

3-digit CSC

3 N

3-digit  Card Security code.  If not present value FFF

End Message Delimiter

1 C

Optional. Must be present if a message trailer is present. Value X'19.

Message Trailer

n A

Optional. Maximum length 32 characters

RESPONSE MESSAGE

Message Header

m A

Returned to the Host unchanged

Response code

2 A

Value RZ

Error Code

2 N

00 : No error

01 : Card security code verification failure

10 : *CSCK parity error

12 : No keys in user storage

13 : LMK parity error

15 : Error in input data

21 : Invalid user storage index

27 : *CSCK not double length

Mode

1 N

Value 4

5-digit CSC verification

1 N

0 if pass. 

1 if not present.

2 if verification failed.

4-digit CSC verification

1 N

0 if pass. 

1 if not present.

2 if verification failed.

3-digit CSC verification

1 N

0 if pass. 

1 if not present.

2 if verification failed.

End Message Delimiter

1 C

Present only if present in the command message. Value X'19

Message Trailer

n A

Present only if present in the command message. Maximum length 32 characters